//
//  Common.swift
//  MyKC
//
//  Created by yy on 2017/3/8.
//  Copyright © 2017年 com.yasuo. All rights reserved.
//

import UIKit


//定义全局的方法 随机色

func randomColor() -> UIColor {
    let r = CGFloat(arc4random() % 256) / 255.0
    let g = CGFloat(arc4random() % 256) / 255.0
    let b = CGFloat(arc4random() % 256) / 255.0
    return UIColor(red: r, green: g, blue: b, alpha: 1)
}

func colorRGB(r:NSInteger, g:NSInteger, b:NSInteger) -> UIColor {
    let r = CGFloat(r % 256) / 255.0
    let g = CGFloat(g % 256) / 255.0
    let b = CGFloat(b % 256) / 255.0
    return UIColor(red: r, green: g, blue: b, alpha: 1)
}



//定义屏幕宽度和高度
let ScreenWidth = UIScreen.main.bounds.width
let ScreenHeight = UIScreen.main.bounds.height
let navBarHeight:CGFloat = 64
let colorBack = colorRGB(r: 246, g: 246, b: 246)


//全局共用的日期处理对象
let sharedDateFormater = DateFormatter()
let sharedType = (shareAppSetting.userType! as NSString).integerValue

//定义拜访的计划
let NotStart = "5001020"
let Visiting = "5001010"
let HasEnded = "5001030"
let Expired = "5001040"

